.class Lcom/nemustech/regina/ElementLocator$5;
.super Ljava/lang/Object;
.source "ElementLocator.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ElementLocator;->distributeWorkspaceViews(I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ElementLocator;

.field final synthetic val$index:I


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ElementLocator;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 468
    iput-object p1, p0, Lcom/nemustech/regina/ElementLocator$5;->this$0:Lcom/nemustech/regina/ElementLocator;

    iput p2, p0, Lcom/nemustech/regina/ElementLocator$5;->val$index:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 9

    .prologue
    const/4 v8, -0x1

    .line 470
    iget-object v6, p0, Lcom/nemustech/regina/ElementLocator$5;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-static {v6}, Lcom/nemustech/regina/ElementLocator;->access$200(Lcom/nemustech/regina/ElementLocator;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v0

    .line 471
    .local v0, isSecretMode:Z
    iget-object v6, p0, Lcom/nemustech/regina/ElementLocator$5;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-static {v6}, Lcom/nemustech/regina/ElementLocator;->access$200(Lcom/nemustech/regina/ElementLocator;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceMode()I

    move-result v4

    .line 472
    .local v4, workspaceMode:I
    iget-object v6, p0, Lcom/nemustech/regina/ElementLocator$5;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v6}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceCount()I

    move-result v3

    .line 473
    .local v3, workspaceCount:I
    iget v6, p0, Lcom/nemustech/regina/ElementLocator$5;->val$index:I

    const/4 v7, 0x1

    sub-int/2addr v6, v7

    add-int/2addr v6, v3

    rem-int v1, v6, v3

    .line 474
    .local v1, leftViewIndex:I
    iget v6, p0, Lcom/nemustech/regina/ElementLocator$5;->val$index:I

    add-int/lit8 v6, v6, 0x1

    rem-int v2, v6, v3

    .line 477
    .local v2, rightViewIndex:I
    iget-object v6, p0, Lcom/nemustech/regina/ElementLocator$5;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-static {v6}, Lcom/nemustech/regina/ElementLocator;->access$600(Lcom/nemustech/regina/ElementLocator;)[I

    move-result-object v6

    iget v7, p0, Lcom/nemustech/regina/ElementLocator$5;->val$index:I

    aput v7, v6, v4

    .line 479
    iget-object v6, p0, Lcom/nemustech/regina/ElementLocator$5;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-static {v6}, Lcom/nemustech/regina/ElementLocator;->access$200(Lcom/nemustech/regina/ElementLocator;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v6

    invoke-virtual {v6, v0}, Lcom/nemustech/regina/ReginaLauncher;->getWorkspaceViewGroup(Z)Landroid/view/ViewGroup;

    move-result-object v5

    .line 481
    .local v5, workspaceViewGroup:Landroid/view/ViewGroup;
    invoke-virtual {v5}, Landroid/view/ViewGroup;->removeAllViews()V

    .line 483
    iget-object v6, p0, Lcom/nemustech/regina/ElementLocator$5;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v6, v4, v1}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceView(II)Lcom/nemustech/regina/WorkspaceView;

    move-result-object v6

    new-instance v7, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v7, v8, v8}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v5, v6, v7}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 487
    iget-object v6, p0, Lcom/nemustech/regina/ElementLocator$5;->this$0:Lcom/nemustech/regina/ElementLocator;

    iget v7, p0, Lcom/nemustech/regina/ElementLocator$5;->val$index:I

    invoke-virtual {v6, v4, v7}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceView(II)Lcom/nemustech/regina/WorkspaceView;

    move-result-object v6

    new-instance v7, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v7, v8, v8}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v5, v6, v7}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 491
    iget-object v6, p0, Lcom/nemustech/regina/ElementLocator$5;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v6, v4, v2}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceView(II)Lcom/nemustech/regina/WorkspaceView;

    move-result-object v6

    new-instance v7, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v7, v8, v8}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v5, v6, v7}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 496
    invoke-virtual {v5}, Landroid/view/ViewGroup;->requestLayout()V

    .line 497
    invoke-virtual {v5}, Landroid/view/ViewGroup;->invalidate()V

    .line 498
    return-void
.end method
